package com.jd.impl;

import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jd.dao.TicketDao;
import com.jd.entity.MyTicketEntity;
import com.jd.entity.NameEntity;
import com.jd.entity.VMyTicketEntity;
import com.jd.service.TicketService;

@Service
public class TicketImpl implements TicketService{

	@Autowired
	private TicketDao ticketDao;
	
	@Override
	public ArrayList<VMyTicketEntity> getMyTickets(String userId) {
		// TODO Auto-generated method stub
		return ticketDao.getMyTickets(userId);
	}

	@Override
	public ArrayList<NameEntity> payTickets(String id) {
		// TODO Auto-generated method stub
		return ticketDao.payTickets(id);
	}

	@Override
	public Boolean save(MyTicketEntity myTicketEntity) {
		// TODO Auto-generated method stub
		return ticketDao.save(myTicketEntity);
	}
	

}
